package com.controller;

import com.service.AsyncService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AsyneController1 {
    @Autowired
    AsyncService1 service1;

    @RequestMapping("/hello")
    public String hello(){
        service1.hello1();
        return "OK";
    }
}
